import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

public class per2_ {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        String pathname="d:\\data.dat";
        ObjectInputStream obj=new ObjectInputStream(new FileInputStream(pathname));
        System.out.println(obj.readBoolean());
        System.out.println(obj.readInt());
        System.out.println(obj.readObject());
    }
}
